package com.ruoyi.common.pojo;

import com.alibaba.fastjson.annotation.JSONField;

import java.io.Serializable;
import java.util.Map;

/**
 * Created with IntelliJ IDEA.
 * User: feil.long
 * Date: 2015/3/19
 * Time: 22:06
 */
public class AFareValidatePriceResult implements Serializable {

    private static final long serialVersionUID = -8400372806710368309L;
    @JSONField (serialize = false)
    private boolean urlNull = false;//url是否为空，如果为空则不进行校验
    /**
     * 出发机场
     */
    private String dptAirport;

    /**
     * 到达机场
     */
    private String arrAirport;

    /**
     * 起飞日期 yyyy-mm-dd,新老接口兼容，yyyymmdd也接受
     */
    private String date;

    /**
     * 销售价格
     */
    private Float salePrice;

    /**
     * 儿童销售价格
     */
    private Float childSalePrice;

    /**
     * 婴儿销售价格
     */
    private Float infantSalePrice;
    /**
     * 接口版本
     */
    private String version;

    /**
     * 扩展字段
     */
    private Map<String, String> dataExt;


    @JSONField (name = "flight")
    private AFarePriceFlight flight;

    public boolean isUrlNull() {
        return urlNull;
    }

    public void setUrlNull(boolean urlNull) {
        this.urlNull = urlNull;
    }

    public String getDptAirport() {
        return dptAirport;
    }

    public void setDptAirport(String dptAirport) {
        this.dptAirport = dptAirport;
    }

    public String getArrAirport() {
        return arrAirport;
    }

    public void setArrAirport(String arrAirport) {
        this.arrAirport = arrAirport;
    }

    public String getDate() {
        return date;
    }

    public void setDate(String date) {
        this.date = date;
    }

    public Float getSalePrice() {
        return salePrice;
    }

    public void setSalePrice(Float salePrice) {
        this.salePrice = salePrice;
    }

    public Float getChildSalePrice() {
        return childSalePrice;
    }

    public void setChildSalePrice(Float childSalePrice) {
        this.childSalePrice = childSalePrice;
    }

    public Float getInfantSalePrice() {
        return infantSalePrice;
    }

    public void setInfantSalePrice(Float infantSalePrice) {
        this.infantSalePrice = infantSalePrice;
    }

    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    public Map<String, String> getDataExt() {
        return dataExt;
    }

    public void setDataExt(Map<String, String> dataExt) {
        this.dataExt = dataExt;
    }

    public AFarePriceFlight getFlight() {
        return flight;
    }

    public void setFlight(AFarePriceFlight flight) {
        this.flight = flight;
    }

    @Override
    public String toString() {
        return "AFareValidatePriceResult{" +
                "urlNull=" + urlNull +
                ", dptAirport='" + dptAirport + '\'' +
                ", arrAirport='" + arrAirport + '\'' +
                ", date='" + date + '\'' +
                ", salePrice=" + salePrice +
                ", childSalePrice=" + childSalePrice +
                ", infantSalePrice=" + infantSalePrice +
                ", version='" + version + '\'' +
                ", dataExt=" + dataExt +
                ", flight=" + flight +
                '}';
    }
}
